<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="./js/vue.js"></script>
	</head>
	<body>
		<div id="a">
			算数运算符：{{3+2}} {{3-2}} {{3*2}} {{3/2}} {{3%2}}
			三元运算法：{{age > 18 ? "成年人" : "未成年人" }}
			<div>字符串的内容是：{{str.substr(1,3)}}</div>
			<div>字符串的长度是：{{str.length}}</div>
			<div>字符串拼接后是：{{str.concat("456")}}</div>
			<div>字符串截取后是：{{str}}</div>
			<div>{{mm()}}</div>
			<div>{{add(4,5)}}</div>
		</div>
		<script>
			var me = {
				mm() {
					alert("456465465")
				},
				
				add(x,y){
					return x+y
				}
			}
			var data = {
				"3+2": 77,
				age: 13,
				str: "1245464896796",
			}

			var a = {
				el: "#a",
				data: data,
				methods: me
			}

			new Vue(a)
		</script>

	</body>
</html>
